From 52af9aede648e138d25e3e37c57c51e2042345fe Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 29 Nov 2012 22:48:27 -0500 Subject: [PATCH] GtkNotebook: Clarify a switch statement We were intentionally falling through here, this commit just adds comments to make that explicit. --- gtk/gtknotebook.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 4d495c7321..377dc906b9 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -2504,6 +2504,7 @@ gtk_notebook_size_allocate (GtkWidget *widget, { case GTK_POS_TOP: child_allocation.y += priv->cur_page->requisition.height; + /* fall thru */ case GTK_POS_BOTTOM: child_allocation.height = MAX (1, child_allocation.height - @@ -2511,6 +2512,7 @@ gtk_notebook_size_allocate (GtkWidget *widget, break; case GTK_POS_LEFT: child_allocation.x += priv->cur_page->requisition.width; + /* fall thru */ case GTK_POS_RIGHT: child_allocation.width = MAX (1, child_allocation.width - -- 2.30.2